package dao;

import java.util.ArrayList;
import java.util.Arrays;

public class Student {
	private int id;
	private String stunum;
	private String name;
	private int classes;
	private String gender;
	private ArrayList<Course> scoreList;
	private double [] coursavg;
	private Double totalscore;//三科的总分
	private Double totalscoreavg;//三科的平均分
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getStunum() {
		return stunum;
	}
	public void setStunum(String stunum) {
		this.stunum = stunum;
	}
	public int getClasses() {
		return classes;
	}
	public void setClasses(int classes) {
		this.classes = classes;
	}
	public double getCoursavg(int i) {
		return coursavg[i];
	}
	public void setCoursavg(double[] coursavg) {
		this.coursavg[0] = coursavg[0];
		this.coursavg[1] = coursavg[0];
		this.coursavg[2] = coursavg[0];
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public ArrayList<Course> getScoreList() {
		return scoreList;
	}
	public void setScoreList(ArrayList<Course> scoreList) {
		this.scoreList = scoreList;
	}
	public Double getTotalscore() {
		return totalscore;
	}
	public void setTotalscore(Double totalscore) {
		this.totalscore = totalscore;
	}
	public Double getTotalscoreavg() {
		return totalscoreavg;
	}
	public void setTotalscoreavg(Double totalscoreavg) {
		this.totalscoreavg = totalscoreavg;
	}
	@Override
	public String toString() {
		return "Student [id=" + id + ", stunum=" + stunum + ", name=" + name + ", classes=" + classes + ", gender="
				+ gender + ", scoreList=" + scoreList + ", coursavg=" + Arrays.toString(coursavg) + ", totalscore="
				+ totalscore + ", totalscoreavg=" + totalscoreavg + "]";
	}
	
}